﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MongoDB.Bson;

namespace SpyApp.Models
{
    public interface IUserRepository
    {
        IEnumerable<User> GetAllUser();        
        User GetUserById(string id);
        User RegisterNewUser(User user);
        bool  Update(string id, User user);
        bool Delete(string id);
        bool UserIsValid(User user);
        string CreateActivationCode(string userName);
        User VerifyUser(string activationCode);
        string SendMail(string subject, string body, string to, bool isHtml, bool isSSL);
        User Login(string user, string passWord);
        void ChangePassWord(string user, string currentPassWord, string newPassWord);
        IEnumerable<Message> GetAllMessageForDeviceByUser(string deviceId, string userId);
        IEnumerable<Device> GetAllDeviceByUser(string userId);
        //Message AddNewMassage(Message message, string userId);        
        Device AddNewDevice(Device device, string userId);        
    }
}